using System.IO;
namespace Legend.IO
{
    /// <summary>
    /// An abstraction of a file system.
    /// </summary>
    public interface IFileSystem
    {
        /// <summary>
        /// Gets a file object.
        /// </summary>
        /// <param name="filePath">The path of the file to get.</param>
        /// <returns>A file object.</returns>
        IFile GetFile(string filePath);

        /// <summary>
        /// Gets a directory object.
        /// </summary>
        /// <param name="directoryPath">The path of the directory to get.</param>
        /// <returns>A directory object.</returns>
        IDirectory GetDirectory(string directoryPath);
    }
}
